<?php
$array_bulan = array(1=>'Januari','Februari','Maret', 'April', 'Mei', 'Juni','Juli','Agustus','September','Oktober', 'November','Desember');
$date_now = date('Y-m-d');

$hr = date('d', strtotime($date_now));
$bln = $array_bulan[date('n',strtotime($date_now))];
$thn = date('Y',strtotime($date_now));

$this->firephp->log($rows);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Cetak</title>
<!--<link rel='stylesheet' type='text/css' href='../assets/css/printstyle.css'/>-->
</head>
<body>
    <strong>DAFTAR TUNJANGAN KELUARGA</strong><br />
    Tgl: <?php echo $hr.' '.$bln.' '.$thn;?><br /><br />
    <table width="400" border="1" cellpadding="0" cellspacing="0">
        <thead>
            <tr>
                <th style="font-size:11px;" align="center" width="100"><strong>TANGGAL</strong></th>
                <th style="font-size:11px;" align="center" width="348"><strong>JENIS LIBUR</strong></th>
                <th style="font-size:11px;" align="center" width="348"><strong>AGAMA</strong></th>
                <th style="font-size:11px;" align="center" width="348"><strong>KETERANGAN</strong></th>
                <th style="font-size:11px;" align="center" width="348"><strong>USERNAME</strong></th>
            </tr>
        </thead>
        <tbody>
            <?php
            for($i=0; $i<sizeof($rows); $i++){
            ?>
            <tr>
                <td style="font-size:11px;" align="center"><?php echo $rows[$i]['TANGGAL'];?></td>
                <td style="font-size:11px;" align="center"><?php echo $rows[$i]['JENISLIBUR'];?></td>
                <td style="font-size:11px;" align="center"><?php echo $rows[$i]['AGAMA'];?></td>
                <td style="font-size:11px;" align="center"><?php echo $rows[$i]['KETERANGAN'];?></td>
                <td style="font-size:11px;" align="center"><?php echo $rows[$i]['USERNAME'];?></td>
            </tr>
            <?php
            }
            ?>
        </tbody>
    </table>
</body>
</html>